#-*-encoding=utf-8-*-
title=u"""定餐表单"""
description=u"""None"""
displayed_columns=[u'canguan', u'title', u'price', u'start']
facetag = u""""""

fields=(
    ComputedField(
        title=u'菜单',
        write_condition=u'',
        default_value_exp=u'''sheet is None and '<br />'.join([ '<a href="../files/%s">%s</a>' % (IDublinCore(file).title, IDublinCore(file).title) for file in parentcontainer['files'].values()]) or '' ''',
        name=u'caidan'
),
    SingleSelectField(
        description='',
        title=u'餐馆',
        validation_exp=u'',
        vocabulary_exp=u'flowsettings["canguan"]',
        limit=4,
        write_condition=u'',
        default_value_exp=u'""',
        name=u'canguan'
),
    TextLineField(
        description='',
        title=u'菜名',
        validation_exp=u'',
        write_condition=u'',
        size=18,
        default_value_exp=u'""',
        name=u'title'
),
    IntegerField(
        maxval=10000,
        description='',
        title=u'价格',
        minval=0,
        validation_exp=u'',
        write_condition=u'',
        size=18,
        default_value_exp=u'8',
        name=u'price'
),
    DateField(
        minutestep=5,
        description='',
        title=u'定餐日期',
        showtime=False,
        validation_exp=u'',
        write_condition=u'',
        default_value_exp=u'datetime.datetime.today()',
        name=u'start'
),
    TextField(
        rows=5,
        description='',
        title=u'备注',
        cols=10,
        validation_exp=u'',
        write_condition=u'',
        default_value_exp=u'""',
        name=u'description'
),)

fields_validation_script=ur""""""
